bitkeeper revision 1.1236.1.32 (4220bdfe_g8imkJtGDR6Xv_2hEHwOQ)
authorkaf24@viper.(none) <kaf24@viper.(none)>
Sat, 26 Feb 2005 18:20:46 +0000 (18:20 +0000)
committerkaf24@viper.(none) <kaf24@viper.(none)>
Sat, 26 Feb 2005 18:20:46 +0000 (18:20 +0000)
DOM0 has no mem reservation limit.
Signed-off-by: Keir Fraser <keir@xensource.com>
xen/arch/x86/domain_build.c

index 802fb6d8c0e5706113ea4f5f8d53c50f7dd8fe01..28bae695451edff3adae8cde0f05b3161bf0d547 100644 (file)
@@ -113,11 +113,11 @@ int construct_dom0(struct domain *d,
     printk("*** LOADING DOMAIN 0 ***\n");
 
     /* By default DOM0 is allocated all available memory. */
+    d->max_pages = ~0U;
     if ( (nr_pages = opt_dom0_mem >> (PAGE_SHIFT - 10)) == 0 )
         nr_pages = avail_domheap_pages() +
             ((initrd_len + PAGE_SIZE - 1) >> PAGE_SHIFT) +
             ((image_len  + PAGE_SIZE - 1) >> PAGE_SHIFT);
-    d->max_pages = nr_pages;
     if ( (page = alloc_largest(d, nr_pages)) == NULL )
         panic("Not enough RAM for DOM0 reservation.\n");
     alloc_start = page_to_phys(page);